package com.tengfei.blogsystem.controller.portal;

/**
 * @version v1.0
 * @author} feige
 * @date 2021-10-15-17:01
 * @description
 */

import com.tengfei.blogsystem.pojo.Comment;
import com.tengfei.blogsystem.response.ResponseResult;
import org.springframework.web.bind.annotation.*;

/**
 * 评论接口
 */
@RestController
@RequestMapping("/portal/comment")
public class CommentApi {
    /**
     *写评论
     * @param
     * @return
     */
    @PostMapping("/")
    public ResponseResult uploadComment(@RequestBody Comment comment){

        return null;
    }

    /**
     *删除评论
     * @param commentId
     * @return
     */
    @DeleteMapping("/{commentId}")
    public ResponseResult deleteComment(@PathVariable("commentId") String commentId){

        return null;
    }

    /**
     *评论列表
     * @param articleId
     * @return
     */
    @GetMapping("/list/{articleId}")
    public ResponseResult listComment(@PathVariable("articleId") String articleId){

        return null;
    }

}
